# -*- coding:utf-8 -*-
'''
# Author: xiguan
# Mail: xiguan.teng@qq.com
# -----
# Last Modified: 2022-05-10 16:56:19
# Modified By: xiguan
# -----
# Copyright (c) 2022 XiGuan Inc.
# 
# No Bug No error No warning.
# -----
'''

from config import Base
from sqlalchemy import Integer, String, Column

class Ignore(Base):

    __tablename__ = 'ignore'
    # 主键，类型为整型，默认自增长
    id = Column(Integer, primary_key=True)
    # 忽略类型：0（文件类型），1（具体文件），2（具体文件夹）
    type = Column(Integer)
    # 是否忽略：0（不忽略），1（忽略）
    ignore = Column(Integer)
    # 名称
    name = Column(String(100))
    # 描述
    desc = Column(String(100))
    # 用户id
    uid = Column(Integer)

    def __init__(self, type, ignore, name, desc, uid):
        self.type = type
        self.ignore = ignore
        self.name = name
        self.desc = desc
        self.uid = uid